//
//  imageViewTextFieldView.m
//  段子
//
//  Created by dllo on 16/6/22.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "imageViewTextFieldView.h"

@interface imageViewTextFieldView ()
//@property(nonatomic, retain)UIImageView *handImageView;
//@property(nonatomic, retain)UITextField *countTextField;
@end



@implementation imageViewTextFieldView

- (void)dealloc
{
    [_handImageView release];
    [_countTextField release];
    [super dealloc];
}

//-(instancetype)initWithFrame:(CGRect)frame withImageName:(NSString *)imageName withCounts:(NSString *)counts{
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        

        self.handImageView = [[UIImageView alloc]init];
        self.handImageView.frame = CGRectMake(0, 0, CGRectGetWidth(self.bounds) / 2, CGRectGetHeight(self.bounds));
        [self addSubview:_handImageView];
        [_handImageView release];
        
        self.countTextField = [[UITextField alloc]initWithFrame:CGRectMake(CGRectGetWidth(self.bounds) / 2, 0, CGRectGetWidth(self.bounds), CGRectGetHeight(self.bounds))];
        self.countTextField.textAlignment = 1;
        [self addSubview:_countTextField];
        [_countTextField release];
        
        
    }
    
    return self;
    
}




@end
